package cate.game.pay.msg;

import cate.game.client.msg.ClientMsg;
import cate.game.client.msg.MsgConfig;
import cate.game.client.msg.MsgOutput;
import cate.game.client.msg.id.MsgIdBPay;
import cate.game.role.pay.RolePay;
import easy.java.dev.note.NoteField;

import java.util.Map;

@ClientMsg(title = "角色支付数据 の 返回")
public class RolePayInitResp implements MsgOutput {

    @NoteField("笔记")
    public String note;

    @NoteField(value = "历史累计充值数额(分)")
    public long paySum;
    @NoteField(value = "历史累计充值次数")
    public long payTimes;
    @NoteField(value = "上次充值时间")
    public long lastPayTime;

    @NoteField(value = "客服返利日志", detail = "Map<返利编码, 日志内容> map有key意味着已发放奖励")
    public Map<String, String> kfRebateLogs;

    public RolePayInitResp() {}

    public RolePayInitResp(RolePay data) {
        this.note = data.note;
        this.paySum = data.paySum;
        this.payTimes = data.payTimes;
        this.lastPayTime = data.lastPayTime;
        this.kfRebateLogs = data.kfRebateLogs;
    }

    @Override
    public MsgConfig conf() {
        return MsgIdBPay.INIT_RESP;
    }
}
